    <div class="content">
    
        <div class="breadLine">
            <ul class="breadcrumb">
                <li>Trang chủ</li>
            </ul>
        </div>
        
        <div class="workplace">
		
            <div class="row-fluid">
                
                <div class="span12">                    
                    <div class="head">
                        <div class="isw-users"></div>
                        <h1><?php echo $error_lang['index_title'];?></h1>                       
                        <div class="clear"></div>
                    </div>
                    <div class="block-fluid">
						<table cellpadding="0" cellspacing="0" width="100%" class="table">
                            <thead>
                                <tr>
									<th width="10%" class="text-center">Userid</th>
                                    <th width="50%">URL</th>
                                    <th>Store</th>
                                    <th class="text-center">Time</th>
									<th width="7%">Action</th>
                                </tr>
                            </thead>
                            <tbody>
			                    <?php
			                    foreach($lsterror as $error)
			                    {
			                    ?>
                                <tr>
									<td class="text-center"><?php echo $error['userid'];?></td>
                                    <td><?php echo $error['url'];?></td>
                                    <td><?php echo $error['store'];?></td>
                                    <td class="text-center"><?php echo $error['time'];?></td>
									<td>
										<?php if($error['status']==0){?>
											<a target="_bank" href="<?php echo site_url('error/detail/'.$error['id']);?>" class="label label-important">Read</a>
										<?php }else{?>
											<span class="label label-success">Done</span>
										<?php }?>
									</td>
                                </tr>
			                    <?php
			                    }
			                    ?>                           
                            </tbody>
						</table>
						<div class="clear"></div>
						<div class="table_info" id="table_info"><?php echo $error_lang['page'];?> <?php echo $page;?>/<?php echo $max_page;?></div>
						<div class="paginate" id="paginate">
							<a onclick="prev();" tabindex="0"><?php echo $error_lang['prev'];?></a>
							<span>
                                <?php
                                    $pages = (int)$max_page > 10 ? 10 : $max_page;
                                    for($i=$pages-1;$i>=0;$i--)
                                    {
                                        $npage = $pages-$i;
                                ?>
                                <a <?php echo ($page==$npage) ? 'class="current"': 'href="'.site_url('error?page='.$npage.'&numrow='.$numrow).'"';?> tabindex="0"><?php echo $npage;?></a>
                                <?php
                                    }
                                ?>
							</span>
							<a onclick="next();" tabindex="0"><?php echo $error_lang['next'];?></a>
						</div>
					</div>
                </div>                                
                
            </div>   
			
            <div class="dr"><span></span></div>
        
        </div>
        
    </div>
    <script type="text/javascript">
        function prev()
        {
            var page = <?php echo $page?>-1;
            if(page==0)
            {
                return;
            }
            
            var url = '<?php echo site_url('error?numrow='.$numrow.'&page=');?>'+page;
            window.location.href=url;
        }
        
        function next()
        {
            var page = <?php echo $page?>+1;
            var pages = <?php echo $pages?>;
            if(page==pages+1)
            {
                return;
            }
            
            var url = '<?php echo site_url('error?numrow='.$numrow.'&page=');?>'+page;
            window.location.href=url;
        }
    </script>